package com.hqyj.controller;

import com.hqyj.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/admin")
public class AdminController {
    @Autowired
    ITablessService tablessService;
    @RequestMapping("/tablelist")
    public String tablelist(){
        System.out.println("123123");
        return "reserve/tableInfo";
    }
    //访问index页面
    @RequestMapping("/indexPage")
    public String indexPage(){return "index";}
    //访问login页面
    @RequestMapping("/loginPage")
    public String loginPage(){
        return "login";
    }

    @RequestMapping("signPage")
    public String signInPage(){return "sign";}

    @Autowired
    IUserService userService;
    @RequestMapping("/userInfo")
    public String userInfo(){return "userInfo";}

    @Autowired
    IDepartmentService departmentService;
    @RequestMapping("/departmentInfo")
    public String departmentInfo(){return "departmentInfo";}

    @Autowired
    IDepartmentPermissionService departmentPermissionService;
    @RequestMapping("/departmentPermission")
    public String departmentPermission(){return "departmentPermission";}

    @Autowired
    IPermissionService permissionService;
    @RequestMapping("/permissionInfo")
    public String permissionInfo(){return "permissionInfo";}


}
